#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#endregion

namespace KLib.Physics.Collisions
{
    public class ContactList : List<Contact>
    {
        #region Fields

        #endregion

        #region Properties

        #endregion

        #region Initialization

        public ContactList() : base()
        {

        }

        public ContactList(int maxToDectect) : base(maxToDectect)
        {
            
        }

        #endregion

        #region Methods
        int index = -1;
        public int IndexOfSafe(Contact contact)
        {
            index = -1;
            for (int i = 0; i < Count; i++)
            {
                if (this[i] == contact)
                {
                    index = i;
                    break;
                }
            }
            return index;
        }
        #endregion

        #region Helper Methods

        #endregion
    }
}
